package com.stu.controller.counsellor;

import com.stu.Dto.EmpDTO;
import com.stu.Dto.StuInformationDto;
import com.stu.pojo.Emp;
import com.stu.result.Result;
import com.stu.serive.CounsellorINFService;
import com.stu.vo.EmpVo;
import com.stu.vo.StuInformationVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/counsellor")
public class CounsellorINFController {

    @Autowired
    private CounsellorINFService counsellorINFService;

    /**
     * 查询辅导员个人信息
     * @return
     */
    @GetMapping("/information")
    private Result<EmpVo> selectCounsellorInformation(){

        return Result.success(counsellorINFService.selectCounsellorInformation());
    }

    /**
     * 修改辅导员个人信息
     * @param empDTO
     * @return
     */
    @PostMapping("/information")
    private Result updateCounsellorINF(@RequestBody EmpDTO empDTO){
        counsellorINFService.updateCounsellorINF(empDTO);
        return Result.success();
    }
}
